package com.gaogzhen.designPattern.immutableObject;

/**
 * @author Administrator
 * @version 1.0
 * @description location immutable
 * @date 2022-10-10 08:32
 */
public final class Location {
    private final double x;
    private final double y;

    public Location(double x, double y) {
        this.x = x;
        this.y = y;
    }

    public double getX() {
        return x;
    }

    public double getY() {
        return y;
    }
}
